<!-- 模态框（Modal） -->
<div class="modal fade" id="menu-create-modal" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <form id="menu-create-form" action="/menu/" method="post">
                <div id="menu-create-box" class="box box-primary box-solid">
                    <div class="box-header with-border">
                        <h3 class="box-title menu-create-title"></h3>
                    </div><!-- /.box-header -->
                    <div class="box-body">
                        <div id="menu-create-msg" class="alert alert-danger alert-dismissable">
                            <p></p>
                        </div>
                        <div class="row">
                            <div class="col-md-8">
                                <form id="menu-create-form" class="form-horizontal" role="form">
                                    <div class="form-group">
                                        <div class="col-sm-offset-2 col-sm-10">
                                            <input id="id" name="id" type="hidden" class="form-control" placeholder=""/>
                                        </div>
                                    </div>
                                    <div class="form-group form-element-first">
                                        <label for="pid" class="col-sm-4 control-label">父菜单</label>
                                        <div class="col-sm-8">
                                            <select class="form-control" id="pid" name="pid" >
                                                <option value="-1">全部</option>
                                                <#list pids as menu>
                                                    <option value="${menu.pid}">${menu.pid}</option>
                                                </#list>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group form-element">
                                        <label for="menu_name" class="col-sm-4 control-label">菜单名称</label>
                                        <div class="col-sm-8">
                                            <input type="text" class="form-control" id="menu_name" name="menu_name" placeholder="">
                                        </div>
                                    </div>
                                    <div class="form-group form-element">
                                        <label for="role_name" class="col-sm-4 control-label">角色名称</label>
                                        <div class="col-sm-8">
                                            <input type="text" class="form-control" id="role_name" name="role_name" placeholder="">
                                        </div>
                                    </div>
                                    <div class="form-group form-element">
                                        <label for="menu_type" class="col-sm-4 control-label">菜单类型</label>
                                        <div class="col-sm-8">
                                            <input type="text" class="form-control" id="menu_type" name="menu_type" placeholder="">
                                        </div>
                                    </div>
                                    <div class="form-group form-element">
                                        <label for="menu_level" class="col-sm-4 control-label">菜单级别</label>
                                        <div class="col-sm-8">
                                            <input type="text" class="form-control" id="menu_level" name="menu_level" placeholder="">
                                        </div>
                                    </div>
                                    <div class="form-group form-element">
                                        <label for="menu_url" class="col-sm-4 control-label">菜单url</label>
                                        <div class="col-sm-8">
                                            <input type="text" class="form-control" id="menu_url" name="menu_url" placeholder="">
                                        </div>
                                    </div>
                                    <div class="form-group form-element">
                                        <label for="enable" class="col-sm-4 control-label">是否启用</label>
                                        <div class="col-sm-8">
                                            <input type="checkbox" id="enable" name="enable">
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>

                    </div><!-- /.box-body -->
                    <div class="box-footer">
                        <a href="javascript:;" class="btn btn-success save-btn">保存</a>
                        <a href="javascript:;" class="btn btn-default cancel-btn">取消</a>
                    </div>
                    <div class="overlay">
                        <i class="fa fa-refresh fa-spin"></i>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<!-- /.modal -->